package com.cium.aqie.myClass

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/27 14:18
 */
fun main() {
    val someGirl = Girl("温柔", "甜美", "动人")
    someGirl.sing("Happy")
    println(someGirl.dress)
    // 允许空指针 kotlin.KotlinNullPointerException
    // println(someGirl.education!!.length)

    // 选择性执行 不会报错, 返回null
    println(someGirl.education?.length)
}